<?php
class Zend_View_Helper_check
{
	public function check($data,$selected)
	{
		foreach ($data as $row)
		{
			if($selected == $row->privilege_id)
			{
				
				$select = "selected";
				echo 'checked';
				return;
			}
		}
		echo "";
	} 
} 
?>
